const express = require('express');

let router = express.Router();

router.use('/',(req,res)=>{
    if(!req.session.user){
        res.redirect('/login/login');
    }else{
        res.locals.act = 'list';
        res.redirect('/article/list');
    }
})

module.exports = router;
